const modalChildBehavior = require('../../behaviors/modalChildBehavior');
Component({
  data: {

  },
  properties: {
    title: {
      type: String,
      value: ''
    },
    text: {
      type: String,
      value: ''
    },
    cancelText: {
      type: String,
      value: '退出'
    },
    confirmText: {
      type: String,
      value: '重新开始'
    },
    mark: {
      type: null,
      value: 1
    },
    show: {
      type: Boolean,
      value: false
    }
  },
  methods: {
    onCancel() {
      this.triggerEvent('cancel');
    },
    onConfirm() {
      this.triggerEvent('confirm');
    }
  }
})